package com.lee.decorate.service.impl;

import com.lee.decorate.service.AbstractDecorator;
import com.lee.decorate.service.GatewayComponent;

/**
 * @author zfl_a
 * @Desc 具体装饰者，实现抽象装饰者的角色，负责对具体构件添加额外的功能
 * @date 2020/8/14
 * @project springboot_design_pattern
 */
public class LogDecorator extends AbstractDecorator {

    public LogDecorator(GatewayComponent gatewayComponent) {
        super(gatewayComponent);
    }

    @Override
    public void accessManager() {
        super.accessManager();
        System.out.println("【2、日志】主要集成了日志功能");
    }
}
